﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="list_profiles.aspx.cs" Inherits="profiles_list_profiles" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>List profiles</title>
   <link rel="stylesheet" href="../styles/jquery.autocomplete.css" type="text/css" />
   <link href="../styles/style.css" rel="stylesheet" type="text/css" />   
      
   <link type="text/css" href="../css/smoothness/jquery-ui-1.8.11.custom.css" rel="stylesheet" /> 
   <script src="../js/jquery-1.5.min.js" type="text/javascript"></script>
   <script src="../js/jquery-ui-1.8.9.custom.min.js" type="text/javascript"></script>
   <script type="text/javascript">
       $(document).ready(function() {
       $("#<%=txtFullName.ClientID%>").autocomplete('findName.ashx');
       });   
   </script>
   
</head>
<body>
    <form id="form1" runat="server">

    <div class="wrapper">
       <div id="header">
		<h1 class="logo">
        <a href="index.aspx">
        	<img src="../images/logo.png" width="280" height="46" border="0" /></a>
        
        </h1>
        <p class="txt_right">
        	<table align="right" style="width: 240px; height: 35px; margin-left: 39px;">
            		<tr>
                    	<td align="left"> 
                            &nbsp;</td>
                        
                    </tr>
            </table>
          </p>
        </div>
     <div class="clear"></div>
     <div id="nav">
      <div style="margin-bottom:20px;width:240px;float:left;">
              <ul class="breadcrumb">
        <li>
            <a href="../index.aspx" title="Home">
         
                 <img src="../images/home.png" width="24" height="23" border="0" align="left" style="margin-top:2px;" class="home" />
      
            </a>
              
            </li>
            <li>
            <a href="../index.aspx"   title="homepage">
                Homepage
                </a>
            </li>
        <li>
            
                List profiles
            
       </li>
      
     </ul>
     </div>
        </div>
        <div class="main_content2">
        <table align="center" cellpadding="0" cellspacing="0" style="margin-top:20px;padding:0;border:1px solid #C1DAD7;">
           			
                    	<tr>
                 		    <th align="right">SCHOOL: </th>
                 		<th align="left">
                             <asp:DropDownList ID="cbSchool" runat="server" AutoPostBack="True" 
                                 onselectedindexchanged="cbSchool_SelectedIndexChanged" >
              
                                
                             </asp:DropDownList>
                             
                             
                             </th>        	
                    
                        <th align="left" width="200" colspan="2"  >MAJOR SUBJECT:
                            <asp:DropDownList ID="cbMajorSubject" runat="server" 
                             
                                AutoPostBack="True">
                                
                             </asp:DropDownList>
                             
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        <Services>
            <asp:ServiceReference Path="~/App_Code/wsSearchProfiles.cs" />
        
        </Services>
    </ajaxToolkit:ToolkitScriptManager>
                             
                            </th>
                    
                   	</tr>
           			
                    	<tr>
                 		    <th align="left">known from:
                             
                            </th>
                 		    <th align="left"><asp:DropDownList ID="cbKnownFrom" runat="server" 
                                    AutoPostBack="True" onselectedindexchanged="cbKnownFrom_SelectedIndexChanged" >
              
                                
                             </asp:DropDownList>
                             
                             
                            </th>
                 		    <th align="left">Expected SalARY: <asp:DropDownList ID="cbExpectedSalaryFrom" runat="server" AutoPostBack="True" >
              
                                
                             </asp:DropDownList>
                             
                             
                             &nbsp;USD</th>
                 		    <th align="left">&nbsp;<asp:Button ID="btnView" runat="server" 
                                    Text="View" CssClass="button white" onclick="btnView_Click" />
                          
                             
                            </th>
                        
                   	</tr>
           			
                    	</table>
         <br /><br />
         
            <div style="clear:both;height:30px;margin-bottom:10px; ">
             <div style="float:left;height:30px;margin-top:10px;">
                 
                   
                    
                     &nbsp;&nbsp;&nbsp;&nbsp;
                     Total items:
                       <asp:Literal ID="ltTotalItems" runat="server"></asp:Literal>

               </div>
               <div style="float:right;margin-right:10px;  ">
         
                      <asp:TextBox  ID="txtFullName" runat="server" 
                    CssClass="box" Width="377px" TabIndex="94">
                    </asp:TextBox>
                              <!-- <ajaxToolkit:AutoCompleteExtender ID="txtFullName_AutoCompleteExtender" 
                                    runat="server" Enabled="True" ServicePath="~/WebSevices/wsSearchProfiles.asmx" 
                                    MinimumPrefixLength="1"
                                    TargetControlID="txtFullName" ServiceMethod="Get_List_FullName" EnableCaching="true">
                                </ajaxToolkit:AutoCompleteExtender> -->
                                
               <asp:Button ID="btnSearch" runat="server" 
                                    Text="Search" CssClass="button white" onclick="btnSearch_Click"  />
                          
                             
            </div>
           </div>
        
       
                    <asp:GridView ID="gdProfiles" runat="server" AllowPaging="True" AutoGenerateColumns="False"                    
                  
                   CssClass="dgTongHopChung2" HorizontalAlign="Center" 
                        onrowcommand="gdProfiles_RowCommand" onrowdatabound="gdProfiles_RowDataBound" 
                        onrowdeleting="gdProfiles_RowDeleting" 
                        onpageindexchanging="gdProfiles_PageIndexChanging" AllowSorting="True" 
                        onsorting="gdProfiles_Sorting" 
                onrowcreated="gdProfiles_RowCreated" Width="880px">
                 <PagerStyle CssClass="pager_style_grid" />
                   <Columns>
                       <asp:TemplateField HeaderText="No">
                           <HeaderStyle CssClass="header_grid" />
                           <ItemTemplate>
                                   <%#Container.DataItemIndex + 1%>
                           </ItemTemplate> 
                           <ItemStyle HorizontalAlign="Center" />
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Profile_id">
                             <ItemTemplate>
                                   <%#Eval("profile_id")%>
                           </ItemTemplate> 
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Fullname" SortExpression="fullname">
                       <HeaderStyle CssClass="header_grid" />
                          <ItemTemplate>
                             <%#Eval("fullname") %>
                          </ItemTemplate>
                                        
                           <ItemStyle HorizontalAlign="Left" />
                                        
                       </asp:TemplateField>
                          
                       <asp:BoundField HeaderText="B.O.D" DataFormatString="{0:dd-MM-yyy}" 
                           DataField="birth">
                         <HeaderStyle CssClass="header_grid" />
                           
                         <ItemStyle HorizontalAlign="Center" />
                       
                       </asp:BoundField>
                       
                       <asp:TemplateField HeaderText="Tele">
                       <HeaderStyle CssClass="header_grid" />
                               <ItemTemplate><%#Eval("phone")%></ItemTemplate>
                           <ItemStyle HorizontalAlign="Left" />
                           <ItemStyle HorizontalAlign="Left" />
                       </asp:TemplateField>
                       
                       <asp:TemplateField HeaderText="Degree">
                       <HeaderStyle CssClass="header_grid" />
                               <ItemTemplate><%#Eval("degree_type")%></ItemTemplate>
                       </asp:TemplateField>
                       
                       <asp:TemplateField HeaderText="Exp. Salary">
                           
                           <ItemTemplate>
                           
                                   <%#Eval("expectedsalary", "{0:c0}") %>
                                   <%#Eval("currency_salary")%>
                                   
                              
                           </ItemTemplate>
                           <HeaderStyle CssClass="header_grid" />
                       </asp:TemplateField>
                       
                       <asp:BoundField DataField="availabledate" DataFormatString="{0:dd-MM-yyy}" 
                           HeaderText="Avail. Date">
                       <HeaderStyle CssClass="header_grid" />
                       </asp:BoundField>
                       
                       <asp:TemplateField HeaderText="Action">
                           <HeaderStyle CssClass="header_grid" />
                           <ItemTemplate>
                                
                              
                               <a href="profile_details.aspx?id=<%#Eval("profile_id")%>">
                                 
                                    Detail 
                               </a>
                               
                               &nbsp;<a href="edit_profile_edu_en.aspx?id=<%#Eval("profile_id")%>">
                                 
                                    Edit
                               </a>
                               &nbsp;<asp:LinkButton ID="lnkButtonDelete" CommandArgument='<%#Eval("profile_id")%>' CommandName="Delete" runat="server">
                                  Delete
                               </asp:LinkButton>
                              
                               
                           </ItemTemplate>                             
                               
                           <ItemStyle HorizontalAlign="Center" />
                               
                       </asp:TemplateField>
                       <asp:BoundField DataField="date_created" DataFormatString="{0:dd/MM/yyy}" 
                           HeaderText="Date Create" SortExpression="date_created">
                       <HeaderStyle CssClass="header_grid" />
                       <ItemStyle HorizontalAlign="Center" />
                       </asp:BoundField>
                       <asp:TemplateField HeaderText="Conclusion">
                           <HeaderStyle CssClass="header_grid" />
                           <ItemTemplate>
                                <%#Eval("recruitment_conclusion") %>
                           </ItemTemplate>
                       </asp:TemplateField>
                   </Columns>
                   <FooterStyle HorizontalAlign="Right" BackColor="DarkGray" BorderColor="DarkGray" 
                        BorderStyle="Solid" BorderWidth="1px" />
                
                   <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" 
                            CssClass="grid_footer_pager" />
               </asp:GridView>
        
         
        </div>
        <div id="footer" style="float:right;">
        	<p>
            	IT Dev 2011<br />
                Version beta
                
                
            </p>
        
        </div>
        
	</div>    
    </form>
</body>
</html>
